﻿using Kratos.Framework.ContentManagement.Models;
using Kratos.Framework.ContentManagement.ViewModels;

namespace Kratos.Framework.Modules.Core.Services
{
    public interface IUserInfoServices
    {
        void Save(UserInfo userInfo);

        bool IsExistUser(string userId);

        void SetAuthenticationCookie(string username);

        void SignOut();

        string HashPassword(string password);

        UserInfo CurrentUser { get; }

        UserInfo GetUser(string userId);

        bool CanLogOn(LogModel model);
    }
}
